package protocol;

import java.util.List;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import base.BaseProtocol;
import bean.AppInfoBean;

/**
 * 游戏页面的网络请求
 * @author Anson-pc
 *
 */
public class GameProtocol extends BaseProtocol<List<AppInfoBean>>{

	/*@Override
	protected List<AppInfoBean> parseJsonString(String jsonString) {
		//1.Bean解析
		//2.泛型解析（List,Map）
		Gson gson = new Gson();
		return	gson.fromJson(jsonString, new TypeToken<List<AppInfoBean>>(){}.getType());
	}*/

	@Override
	protected String getInterceKey() {
		// TODO Auto-generated method stub
		return "game";
	}

}
